package nezumi;

import java.util.Properties;

import nezumi.util.PropertyLoader;

public final class Constants {

	private static Properties properties = PropertyLoader
			.loadProperties("constants.properties");

	public static final int MAP_WIDTH = Integer.parseInt(properties
			.getProperty("MAP_WIDTH"));
	public static final int MAP_HEIGHT = Integer.parseInt(properties
			.getProperty("MAP_HEIGHT"));
	public static final float MAP_GRANULARITY = Float.parseFloat(properties
			.getProperty("MAP_GRANULARITY"));
	public static final float MOUSE_RADIUS = Float.parseFloat(properties
			.getProperty("MOUSE_RADIUS"));
	public static final int N_TARGETS = Integer.parseInt(properties
			.getProperty("N_TARGETS"));
	public static final float MOTOR_MAX_POW = Float.parseFloat(properties
			.getProperty("MOTOR_MAX_POW"));
	public static final int COMPASS_DELAY = Integer.parseInt(properties
			.getProperty("COMPASS_DELAY"));
	public static final int COMPASS_STD_DEV = Integer.parseInt(properties
			.getProperty("COMPASS_STD_DEV"));
	public static final float IR_CUTOFF = Float.parseFloat(properties
			.getProperty("IR_CUTOFF"));
	public static final float IR_STD_DEV = Float.parseFloat(properties
			.getProperty("IR_STD_DEV"));
	public static final float OBST_APRIORI_PROB = Float.parseFloat(properties
			.getProperty("OBST_APRIORI_PROB"));
	public static final int IR_LFT_ANGLE = Integer.parseInt(properties
			.getProperty("IR_LFT_ANGLE"));
	public static final int IR_RGT_ANGLE = Integer.parseInt(properties
			.getProperty("IR_RGT_ANGLE"));
	public static final int IR_FRT_ANGLE = Integer.parseInt(properties
			.getProperty("IR_FRT_ANGLE"));
	public static final int IR_APERTURE = Integer.parseInt(properties
			.getProperty("IR_APERTURE"));
	public static final int BEACON_DELAY = Integer.parseInt(properties
			.getProperty("BEACON_DELAY"));
	public static final float BEACON_STD_DEV = Float.parseFloat(properties
			.getProperty("BEACON_STD_DEV"));
	public static final float MAP_ERROR_MARGIN = Float.parseFloat(properties
			.getProperty("MAP_ERROR_MARGIN"));
	public static final int TARGET_TIMEOUT = Integer.parseInt(properties
			.getProperty("TARGET_TIMEOUT"));
	public static final float VISITED_GRANULARITY = Float.parseFloat(properties
			.getProperty("VISITED_GRANULARITY"));
	public static final float OBST_NOISE = Float.parseFloat(properties
			.getProperty("OBST_NOISE"));
	public static final float MIN_WALL_WIDTH = Float.parseFloat(properties
			.getProperty("MIN_WALL_WIDTH"));
	public static final float WALKABLE_THRESHOLD = Float.parseFloat(properties
			.getProperty("WALKABLE_THRESHOLD"));
}